package com.csun.cmny.provider.dao;

import com.csun.cmny.provider.model.domain.OmcNursingRoomBind;
import com.csun.cmny.provider.model.dto.FollowDataPageQueryOld;
import com.csun.cmny.provider.model.vo.nursing.NursingGroupOldmanVo;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OmcNursingRoomBindMapper extends Mapper<OmcNursingRoomBind> {

    /**
     * query nursing group oldman by oldman id
     *
     * @param oldmanId  the oldman id
     *
     * @return  the nursing group oldman vo
     */
    NursingGroupOldmanVo queryNursingGroupOldmanByOldmanId(Integer oldmanId);

    /**
     * query room id list by nursing group id
     *
     * @param nursingGroupId    the nursing group id
     *
     * @return  the room id list
     */
    List<Integer> queryRoomIdListByNursingGroupId(Long nursingGroupId);

    /**
     * query room id list by nursing group id list
     *
     * @param idList the nursing group id list
     *
     * @return  the room id list
     */
    List<Integer> queryRoomIdListByNursingGroupIdList(@Param("idList") List<Long> idList);

    List<Long> selectTemperatureByNuringId(FollowDataPageQueryOld followDataPageQueryOld);
}